package com.spzx.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spzx.product.api.domain.Brand;
import com.spzx.product.domain.CategoryBrand;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 分类品牌Mapper接口
 */
public interface CategoryBrandMapper extends BaseMapper<CategoryBrand> {

    /**
     * 查询分类品牌列表
     *
     * @param categoryBrand 分类品牌
     * @return 分类品牌集合
     */
    public List<CategoryBrand> selectCategoryBrandList(CategoryBrand categoryBrand);


    public List<Brand> selectBrandListByCategoryId(@Param("categoryId")Long categoryId);
}